package com.csmzxy.service;

import com.csmzxy.dao.UserMapper;
import com.csmzxy.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2018/8/28.
 */
@Service
public class UserService {

    @Autowired
    UserMapper userMapper;

    public User findUserById(String id) {
        int uid = Integer.parseInt(id);
        User user = userMapper.selectByPrimaryKey(uid);
        return user;
    }
}
